package com.vatex.vcp.figuras;

public class Punto {
 double x;
 double y;
 
	public  Punto(){}
	
	public  Punto(double param1, double param2){
		x=param1;
		y=param2;
	}
	
	public double calcularDistanciaDesde(Punto param){
		double distance=0;
		distance=Math.sqrt(Math.pow(param.getX()-this.x,2 )+ Math.pow(param.getY()-this.y,2 ));
				return distance;
		
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	
	
}
